package com.imooc.enums;

public enum YesOrNo {
    /**
     * 是
     */
    YES(1,"是"),
    NO(0,"否")
    ;
    private int code;
    private String desc;

    YesOrNo(int code,String desc) {
        this.code = code;
        this.desc = desc;
    }

    public int getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }
}
